const allRows = [
    {
        startAge: 55,
        startAgeSign: 1,
        endAge: null,
        endAgeSign: null,
        cpfShares: [
            {
                id: 11,
                twStartAmt: 100,
                twStartAmtSign: 1,
                twEndAmt: null,
                twEndAmtSign: null,
                totalShare: 'Nil',
                employeeShare: 'Nil',
                companyShare: 'Nil'
            },
            {
                id: 12,
                twStartAmt: 100,
                twStartAmtSign: 2,
                twEndAmt: null,
                twEndAmtSign: null,
                totalShare: '17% (TW)',
                employeeShare: 'Nil',
                companyShare: '17% (TW)'
            },
            {
                id: 13,
                twStartAmt: null,
                twStartAmtSign: null,
                twEndAmt: 200,
                twEndAmtSign: 1,
                totalShare: '17% (TW) + 0.6 （TW-$500）',
                employeeShare: '0.6 （TW-$500）',
                companyShare: '17% (TW)'
            },
            {
                id: 14,
                twStartAmt: null,
                twStartAmtSign: null,
                twEndAmt: 200,
                twEndAmtSign: 2,
                totalShare: '17% (TW) + 0.6 （TW-$500）',
                employeeShare: '0.6 （TW-$500）',
                companyShare: '17% (TW)'
            },
            {
                id: 15,
                twStartAmt: 300,
                twStartAmtSign: 1,
                twEndAmt: 400,
                twEndAmtSign: 1,
                totalShare: 'Nil',
                employeeShare: 'Nil',
                companyShare: 'Nil'
            },
            {
                id: 16,
                twStartAmt: 300,
                twStartAmtSign: 1,
                twEndAmt: 400,
                twEndAmtSign: 2,
                totalShare: '17% (TW)',
                employeeShare: 'Nil',
                companyShare: '17% (TW)'
            },
            {
                id: 17,
                twStartAmt: 400,
                twStartAmtSign: 2,
                twEndAmt: 500,
                twEndAmtSign: 1,
                totalShare: '17% (TW) + 0.6 （TW-$500）',
                employeeShare: '0.6 （TW-$500）',
                companyShare: '17% (TW)'
            },
            {
                id: 18,
                twStartAmt: 400,
                twStartAmtSign: 2,
                twEndAmt: 500,
                twEndAmtSign: 2,
                totalShare: '17% (TW) + 0.6 （TW-$500）',
                employeeShare: '0.6 （TW-$500）',
                companyShare: '17% (TW)'
            }
        ]
    },
    {
        startAge: null,
        startAgeSign: null,
        endAge: 55,
        endAgeSign: 2,
        cpfShares: [
            {
                id: 25,
                twStartAmtSign: null,
                twEndAmt: 50,
                twEndAmtSign: 2,
                totalShare: 'Nil',
                employeeShare: 'Nil',
                companyShare: 'Nil'
            },
            {
                id: 26,
                twStartAmt: 50,
                twStartAmtSign: 1,
                twEndAmt: 500,
                twEndAmtSign: 2,
                totalShare: '17% (TW)',
                employeeShare: 'Nil',
                companyShare: '17% (TW)'
            },
            {
                id: 27,
                twStartAmt: 500,
                twStartAmtSign: 1,
                twEndAmt: 750,
                twEndAmtSign: 2,
                totalShare: '17% (TW) + 0.6 （TW-$500）',
                employeeShare: '0.6 （TW-$500）',
                companyShare: '17% (TW)'
            },
            {
                id: 28,
                twStartAmt: 750,
                twStartAmtSign: 2,
                twEndAmt: null,
                twEndAmtSign: null,
                totalShare: '17% (TW) + 0.6 （TW-$500）',
                employeeShare: '0.6 （TW-$500）',
                companyShare: '17% (TW)'
            }
        ]
    }
];

const search = () => ({
    code: 10000,
    data: {
        id: '10249f4e1fe94839b474ad49c19fac86',
        prName: '',
        prType: 4,
        processStatus: 1,
        details: allRows
    }
});
export default {
    'GET x/api/finance/salary/v1/setting/cpf/detail/list': (req, res) => {
        res.json(search(req));
    }
};
